.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "REPOMANAGE" "1" "Aug 22, 2024" "4.9.0" "dnf-plugins-core"
.SH NAME
repomanage \- redirecting to DNF repomanage Plugin
.sp
Manage a repository or a simple directory of rpm packages.
.SH SYNOPSIS
.sp
\fBdnf repomanage [<optional\-options>] [<options>] <path>\fP
.SH DESCRIPTION
.sp
\fIrepomanage\fP prints newest or older packages in a repository specified by <path> for easy piping to xargs or similar programs. In case <path> doesn\(aqt contain a valid repodata, it is searched for rpm packages which are then used instead.
If the repodata are present, \fIrepomanage\fP uses them as the source of truth, it doesn\(aqt verify that they match the present rpm packages. In fact, \fIrepomanage\fP can run with just the repodata, no rpm packages are needed.
.sp
In order to work correctly with modular packages, <path> has to contain repodata with modular metadata. If modular content is present, \fIrepomanage\fP prints packages from newest or older stream versions in addition to newest or older non\-modular packages.
.SS Options
.sp
All general DNF options are accepted, see \fIOptions\fP in \fBdnf(8)\fP for details.
.sp
The following options set what packages are displayed. These options are mutually exclusive, i.e. only one can be specified. If no option is specified, the newest packages are shown.
.INDENT 0.0
.TP
.B \fB\-\-old\fP
Show older packages (for a package or a stream show all versions except the newest one).
.TP
.B \fB\-\-oldonly\fP
Show older packages (same as \-\-old, but exclude the newest packages even when it\(aqs included in the older stream versions).
.TP
.B \fB\-\-new\fP
Show newest packages.
.UNINDENT
.sp
The following options control how packages are displayed in the output:
.INDENT 0.0
.TP
.B \fB\-s\fP, \fB\-\-space\fP
Print resulting set separated by space instead of newline.
.TP
.B \fB\-k <keep\-number>\fP, \fB\-\-keep <keep\-number>\fP
Limit the resulting set to newest \fB<keep\-number>\fP packages.
.UNINDENT
.SH EXAMPLES
.sp
Display newest packages in current repository (directory):
.INDENT 0.0
.INDENT 3.5
.sp
.EX
dnf repomanage \-\-new .
.EE
.UNINDENT
.UNINDENT
.sp
Display 2 newest versions of each package in \(dqhome\(dq directory:
.INDENT 0.0
.INDENT 3.5
.sp
.EX
dnf repomanage \-\-new \-\-keep 2 ~/
.EE
.UNINDENT
.UNINDENT
.sp
Display oldest packages separated by space in current repository (directory):
.INDENT 0.0
.INDENT 3.5
.sp
.EX
dnf repomanage \-\-old \-\-space .
.EE
.UNINDENT
.UNINDENT
.SH AUTHOR
See AUTHORS in your Core DNF Plugins distribution
.SH COPYRIGHT
2024, Red Hat, Licensed under GPLv2+
.\" Generated by docutils manpage writer.
.
